﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace AbpToDomain.EntityInfo
{
    public class BoxType : Entity
    {

        [Key]
        public Guid BoxType_Id { get; set; }
        [Comment("箱盒类型")]
        public string BoxType_Name { get; set; }
        [Comment("宽")]
        public int Width { get; set; }
        [Comment("深")]
        public int DePth { get; set; }
        [Comment("高")]
        public int Height { get; set; }
        public override object?[] GetKeys()
        {
            return new object?[] { BoxType_Id };
        }



        //foreignkey
        public List<Box>? Boxes { get; set; } = new List<Box>(); 
        public List<WarehouseLine>? WarehouseLines { get; set; }= new List<WarehouseLine>();
    }
}
